package com.alliky.core.net;

import androidx.annotation.Nullable;

import java.io.IOException;

/**
 * @Author: wxianing
 * @CreateDate: 2022/4/7 21:30
 * @Description: java类作用描述
 */
public class ResponseThrowable extends IOException {
    public int code;
    public String message;

    public ResponseThrowable(int code) {
        this.code = code;
    }

    public ResponseThrowable(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public ResponseThrowable(Throwable cause,int code) {
        super(cause);
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    @Nullable
    @org.jetbrains.annotations.Nullable
    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
